package com.qianfeng.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.qianfeng.service.DeptService;

@Controller
public class DeptController {

	@Autowired
	private DeptService deptService;
	
	@RequestMapping("/finddept")
	@ResponseBody
	public String findAll() {
		
		return deptService.findDepts().toString();
	}
}
